package com.example.footballsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.footballsystem.entity.userDairy;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserDairyMapper extends BaseMapper<userDairy> {
    @Insert("insert into user_dairy(User_name, User_Account, login_time,ip,Os,Ie) values (#{user.username},#{user.account},#{logintime},#{ip},#{Os},#{Ie})")
    public Boolean addUserDairy(userDairy dairy);
    @Select("select COUNT(*) from user_dairy")
    public Integer count();
}
